// import React from 'react'
// import { Redirect } from 'react-router-dom'
import Admin from '@src/pages/admin/index'
import Login from '@src/pages/login'

interface Page {
  path: string
  component: React.FC<any>
  auth: boolean
}

export const RouterConfig: Page[] = [
  {
    path: '/admin',
    component: Admin,
    auth: true
  },
  {
    path: '/login',
    component: Login,
    auth: false
  }
]
